/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;
import DAO.*;
import DTO.usuarioDTO;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;

/**
 *
 * @author User
 */
public class MenuAdministrador extends javax.swing.JFrame {

    usuarioDTO user;
    public MenuAdministrador(usuarioDTO user) {
        this.user = user;
        initComponents();
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        btnCerrarSesionMAdmi = new javax.swing.JButton();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jPanel9 = new javax.swing.JPanel();
        pnlGarantias = new javax.swing.JPanel();
        btnAgregarMenuAdmi = new javax.swing.JButton();
        btnModifiMenuAdmi = new javax.swing.JButton();
        btnAsignarUser = new javax.swing.JButton();
        btnEliminarUsuario = new javax.swing.JButton();
        btnListarUsuarios = new javax.swing.JButton();
        btnMenuUsuario = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        pnlGarantias1 = new javax.swing.JPanel();
        btnRespaldarMenuAdmi = new javax.swing.JButton();
        btnRevisarHistorial = new javax.swing.JButton();
        txtRespaldoBD = new javax.swing.JTextField();
        btnSeleccionar = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("MENÚ ADMINISTRADOR");

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jLabel2.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel2.setText("MENÚ ADMINISTRADOR");

        btnCerrarSesionMAdmi.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnCerrarSesionMAdmi.setText("CERRAR SESIÓN");
        btnCerrarSesionMAdmi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarSesionMAdmiActionPerformed(evt);
            }
        });

        jTabbedPane2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        pnlGarantias.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "USUARIO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 12), java.awt.Color.blue)); // NOI18N

        btnAgregarMenuAdmi.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAgregarMenuAdmi.setText("NUEVO USUARIO");
        btnAgregarMenuAdmi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarMenuAdmiActionPerformed(evt);
            }
        });

        btnModifiMenuAdmi.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnModifiMenuAdmi.setText("MODIFICAR USUARIO");
        btnModifiMenuAdmi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModifiMenuAdmiActionPerformed(evt);
            }
        });

        btnAsignarUser.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAsignarUser.setText("ASIGNAR PERFILES");
        btnAsignarUser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAsignarUserActionPerformed(evt);
            }
        });

        btnEliminarUsuario.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnEliminarUsuario.setText("ELIMINAR USUARIO");
        btnEliminarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarUsuarioActionPerformed(evt);
            }
        });

        btnListarUsuarios.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnListarUsuarios.setText("LISTAR USUARIOS");
        btnListarUsuarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListarUsuariosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlGarantiasLayout = new javax.swing.GroupLayout(pnlGarantias);
        pnlGarantias.setLayout(pnlGarantiasLayout);
        pnlGarantiasLayout.setHorizontalGroup(
            pnlGarantiasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlGarantiasLayout.createSequentialGroup()
                .addContainerGap(161, Short.MAX_VALUE)
                .addGroup(pnlGarantiasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(btnListarUsuarios, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnAsignarUser, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE)
                    .addComponent(btnAgregarMenuAdmi, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE)
                    .addComponent(btnModifiMenuAdmi, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE)
                    .addComponent(btnEliminarUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE))
                .addGap(135, 135, 135))
        );
        pnlGarantiasLayout.setVerticalGroup(
            pnlGarantiasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlGarantiasLayout.createSequentialGroup()
                .addComponent(btnAgregarMenuAdmi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnModifiMenuAdmi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnEliminarUsuario)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnListarUsuarios, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnAsignarUser)
                .addContainerGap())
        );

        btnMenuUsuario.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuUsuario.setText("ACCESO MENU USUARIO");
        btnMenuUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuUsuarioActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addContainerGap(396, Short.MAX_VALUE)
                        .addComponent(btnMenuUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(pnlGarantias, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGap(27, 27, 27))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(pnlGarantias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnMenuUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane2.addTab("ADMINISTRAR USUARIOS", jPanel9);

        pnlGarantias1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "BASE DE DATOS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 12), java.awt.Color.blue)); // NOI18N

        btnRespaldarMenuAdmi.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnRespaldarMenuAdmi.setText("RESPALDAR");
        btnRespaldarMenuAdmi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRespaldarMenuAdmiActionPerformed(evt);
            }
        });

        btnRevisarHistorial.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnRevisarHistorial.setText("REVISAR HISTORIAL");
        btnRevisarHistorial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRevisarHistorialActionPerformed(evt);
            }
        });

        txtRespaldoBD.setEditable(false);

        btnSeleccionar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnSeleccionar.setText("SELECCIONE DIRECCION A GUARDAR");
        btnSeleccionar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSeleccionarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlGarantias1Layout = new javax.swing.GroupLayout(pnlGarantias1);
        pnlGarantias1.setLayout(pnlGarantias1Layout);
        pnlGarantias1Layout.setHorizontalGroup(
            pnlGarantias1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlGarantias1Layout.createSequentialGroup()
                .addContainerGap(112, Short.MAX_VALUE)
                .addGroup(pnlGarantias1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlGarantias1Layout.createSequentialGroup()
                        .addComponent(btnRevisarHistorial, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlGarantias1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(pnlGarantias1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtRespaldoBD, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
                            .addComponent(btnRespaldarMenuAdmi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(btnSeleccionar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addGap(170, 170, 170))
        );
        pnlGarantias1Layout.setVerticalGroup(
            pnlGarantias1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlGarantias1Layout.createSequentialGroup()
                .addComponent(btnSeleccionar)
                .addGap(18, 18, 18)
                .addComponent(txtRespaldoBD, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRespaldarMenuAdmi)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                .addComponent(btnRevisarHistorial)
                .addContainerGap())
        );

        txtRespaldoBD.getAccessibleContext().setAccessibleName("");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(pnlGarantias1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(25, 25, 25))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(53, 53, 53)
                .addComponent(pnlGarantias1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(47, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("RESPALDAR B.D", jPanel1);

        jLabel3.setFont(new java.awt.Font("Century Gothic", 1, 24)); // NOI18N
        jLabel3.setText("SISTEMA BANCARIO");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 609, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(68, 68, 68)
                                .addComponent(jLabel2))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(55, 55, 55)
                                .addComponent(jLabel3))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(261, 261, 261)
                        .addComponent(btnCerrarSesionMAdmi)))
                .addContainerGap(21, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(28, 28, 28))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel2)
                        .addGap(38, 38, 38)))
                .addComponent(jTabbedPane2)
                .addGap(18, 18, 18)
                .addComponent(btnCerrarSesionMAdmi)
                .addGap(24, 24, 24))
        );

        setSize(new java.awt.Dimension(670, 531));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnAgregarMenuAdmiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarMenuAdmiActionPerformed
        ModuloAdmiAgregarUsuario usuario = new ModuloAdmiAgregarUsuario(user);
        usuario.setVisible(true);
        usuario.setLocationRelativeTo(null);
        MenuAdministrador.this.dispose();
    }//GEN-LAST:event_btnAgregarMenuAdmiActionPerformed

    private void btnModifiMenuAdmiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModifiMenuAdmiActionPerformed
        ModuloAdmiModificarUsuario venModAdminModifiUsua = new ModuloAdmiModificarUsuario(user);
        venModAdminModifiUsua.setVisible(true);
        MenuAdministrador.this.dispose();
    }//GEN-LAST:event_btnModifiMenuAdmiActionPerformed

    private void btnRespaldarMenuAdmiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRespaldarMenuAdmiActionPerformed
        if(txtRespaldoBD.getText().length() > 0){
        Respaldo_BaseDatos respaldo = new Respaldo_BaseDatos();  
        respaldo.CrearBackup("localhost", "3306", "root", "1234", "garantias",txtRespaldoBD.getText()+ "/garantias_backup.sql");//"C:/garantias_backup.sql"
        javax.swing.JOptionPane.showMessageDialog(this, "Base de Datos 'garantias_backup.sql' Ha Sido Respaldada Exitosamente");
        }else{javax.swing.JOptionPane.showMessageDialog(this, "Seleccione la dirección");}
        
    }//GEN-LAST:event_btnRespaldarMenuAdmiActionPerformed

    private void btnListarUserMenuAdmiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListarUserMenuAdmiActionPerformed
       ModuloAdmiListarUsuarios lista = new ModuloAdmiListarUsuarios(user);
       lista.setVisible(true);
       MenuAdministrador.this.dispose();
    }//GEN-LAST:event_btnListarUserMenuAdmiActionPerformed

    private void btnAsignarUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAsignarUserActionPerformed
        PermitirAsignarRolesUser perfil = new PermitirAsignarRolesUser(user);
        perfil.setVisible(true);
        MenuAdministrador.this.dispose();
    }//GEN-LAST:event_btnAsignarUserActionPerformed

    private void btnCerrarSesionMAdmiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarSesionMAdmiActionPerformed
        int respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro que desea cerrar sesion?", "Cerrar Sesion", JOptionPane.OK_CANCEL_OPTION);
        if(respuesta == 0)
        {
            InicioSesion iniciar = new InicioSesion();
            iniciar.setLocationRelativeTo(null);
            iniciar.setVisible(true);
            
            MenuAdministrador.this.dispose();
            javax.swing.JOptionPane.showMessageDialog(null, "Sesion Finalizada!");
            Respaldo_BaseDatos respaldo = new Respaldo_BaseDatos();
            respaldo.automaticoBackup();
        }
        else
        {
            
        }
    }//GEN-LAST:event_btnCerrarSesionMAdmiActionPerformed

    private void btnMenuUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuUsuarioActionPerformed
        MenuPrincipal principal = new MenuPrincipal(user);
        principal.setLocationRelativeTo(null);
        principal.setVisible(true);
        MenuAdministrador.this.dispose();
    }//GEN-LAST:event_btnMenuUsuarioActionPerformed

    private void btnEliminarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarUsuarioActionPerformed
        ModuloAdmiEliminarUsuario eliminar = new ModuloAdmiEliminarUsuario(user);
        eliminar.setVisible(true);
        MenuAdministrador.this.dispose();
                
    }//GEN-LAST:event_btnEliminarUsuarioActionPerformed

    private void btnListarUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListarUsuariosActionPerformed
        try 
        {
            ModuloAdmiListarUsuarios moduloListar = new ModuloAdmiListarUsuarios(user);
            moduloListar.setVisible(true);
            MenuAdministrador.this.dispose();
        } catch (Exception e) {
            javax.swing.JOptionPane.showMessageDialog(null, "Error: " + e);
        }
        
    }//GEN-LAST:event_btnListarUsuariosActionPerformed

    private void btnRevisarHistorialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRevisarHistorialActionPerformed
        Historial history = new Historial(user);
        history.setVisible(true);
        MenuAdministrador.this.dispose();
    }//GEN-LAST:event_btnRevisarHistorialActionPerformed

    private void btnSeleccionarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSeleccionarActionPerformed
        JFileChooser filechooser = new JFileChooser();
        filechooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        int opcion = filechooser.showSaveDialog(this);
        if (opcion==JFileChooser.APPROVE_OPTION){
           txtRespaldoBD.setText(filechooser.getSelectedFile().getPath());
        }
    }//GEN-LAST:event_btnSeleccionarActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(MenuAdministrador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(MenuAdministrador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(MenuAdministrador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(MenuAdministrador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the form
//         */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new MenuAdministrador().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAgregarMenuAdmi;
    private javax.swing.JButton btnAsignarUser;
    private javax.swing.JButton btnCerrarSesionMAdmi;
    private javax.swing.JButton btnEliminarUsuario;
    private javax.swing.JButton btnListarUsuarios;
    private javax.swing.JButton btnMenuUsuario;
    private javax.swing.JButton btnModifiMenuAdmi;
    private javax.swing.JButton btnRespaldarMenuAdmi;
    private javax.swing.JButton btnRevisarHistorial;
    private javax.swing.JButton btnSeleccionar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JPanel pnlGarantias;
    private javax.swing.JPanel pnlGarantias1;
    private javax.swing.JTextField txtRespaldoBD;
    // End of variables declaration//GEN-END:variables
}
